//获取任务参数
export const getTaskParams = `
query{
  getTaskParams{
   time{
        label
        value
    }
    staff{
        label
        value
    }
  }
}`;
//获取任务列表
export const getTaskList = `
query($page:Int,$status:Int) {
  getTaskList(page:$page,status:$status) {
      total
      lastpage
      list{
          id
          order_sn
          delivery_address
          delivery_time
          cart_code
          driver_name
          driver_mobile
          delivery_time_text
          subscribe_id
          fuli_nums
          starttime
          endtime
          des
          status
          status_name
          staff_name
          is_show
          staff_id
          log_list{
              id
              title
              desc
          }
      }
  }
}`;
//预约单列表
export const getSubscribeLog = `
query($page:Int) {
  getSubscribeLog(page:$page) {
    list{
      id
      order_sn
      address
      deliverytime
      cart_code
      driver_name
      driver_mobile
      fuli_nums
      longitude
      latitude
      status
      log_list{
          id
          title
          desc
      }
      status_text
  }
  total
  lastpage
  }
}`;
//获取预约单详情
export const getSubscribeLogInfo = `
query($id:Int) {
  getSubscribeLogInfo(id:$id) {
    id
    order_sn
    address
    longitude
    delivery_time
    latitude
    deliverytime
    cart_code
    driver_name
    driver_mobile
    status_text
    driver_id
  }
}`;
//获取任务详情
export const getTaskInfo = `
query($id:Int) {
  getTaskInfo(id:$id) {
    id
    order_sn
    delivery_address
    delivery_time
    delivery_time_text
    subscribe_time_text
    cart_code
    driver_name
    driver_mobile
    des
    status
    status_name
    staff_name
    staff_id
    longitude
    latitude
  }
}`;
// 获取区域
export const getRegionList = `
query{
  getRegionList{
    id
    name
  }
}`;
//获取可以转单的人员
export const getStaffLis = `
query($staff_id:Int) {
  getStaffList(staff_id:$staff_id) {
    id
    name
  }
}`;
//获取数量
export const getTaskCount = `
query{
  getTaskCount{
    subscribe_count
  }
}`;
//获取群（新）
export const getQun = `
query{
  getQun{
    id
    name
    qun{
        name
        chat_id
    }
  }
}`;
//获取群（搜索）
export const getQunList = `
query($region_id:Int,$keywords:String) {
  getQunList(region_id:$region_id,keywords:$keywords) {
    name
    chat_id
  }
}`;
//获取地推人员列表
export const getDeliveryStaffList = `
query($page:Int,$keywords:String) {
  getDeliveryStaffList(page:$page,keywords:$keywords) {
    list{
      id
      name
      mobile
      avatar
  }
  total
  lastpage
  }
}`;